package com.liudadan.service.impl;

import com.liudadan.dao.StudentDao;
import com.liudadan.pojo.Student;
import com.liudadan.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;
@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentDao studentDao;

    @Override
    public List<Student> findAllStudents() throws SQLException {
        List<Student> allStudent = studentDao.findAllStudents();
        return allStudent;
    }
}
